package com.icangya.DAO.impl;

import com.icangya.DAO.IFbIpRequestDAO;
import com.icangya.domain.FBIpRequest;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class FbIpRequestDAOImpl extends BaseDAO<FBIpRequest> implements IFbIpRequestDAO {

    @Override
    public List<FBIpRequest> selectIpRequestByIpAndCreateTime(String ip,String createTime){
        String hql=" from FBIpRequest fr where fr.ip = ? and fr.createTime = ? ";
        List<FBIpRequest> fbIpRequestList = (List<FBIpRequest>) getHibernateTemplate().find(hql,ip,createTime);
        if (fbIpRequestList.size()>0){
            return fbIpRequestList;
        }
        return null;
    }



}
